package com.ihighest.app.infox.fragment;


import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.ihighest.app.infox.R;
import com.ihighest.app.infox.adapter.StoreListViewAdapter;

 
/**
 * TODO (类名称)
 * NearStoresListFragment
 * <pre>
 * Description: TODO (描述类的主要功能)
 * 展示附近农资商店列表
 * </pre>
 * 
 * <pre>
 * Example: TODO (描述类的的主要用法) (可选)
 * </pre>
 *
 * @author yyh Created at 2015-10-13 上午10:53:32
 * @version 1.0
 */
public class NearStoresListFragment extends Fragment {
	View view;
	ListView storesListView;
	Context context;
	private StoreListViewAdapter storeAdapter;

	public NearStoresListFragment(Context context) {
		super();
		this.context = context;
	}




	@Override
	@Nullable

	public View onCreateView(LayoutInflater inflater,
			@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
		view=inflater.inflate(R.layout.infox_fragment_storeslist, null);
		
		// TODO Auto-generated method stub
		storesListView=(ListView) view.findViewById(R.id.id_near_agricultural_stores_listview);
		//listview 数据适配
		storeAdapter=new StoreListViewAdapter(context);
		storesListView.setAdapter(storeAdapter);
		return view;
	}

}
